package Dao;
import java.sql.*;
public class DBConn 
{
	public static Connection getConnection() 
	{
		String url = "jdbc:mysql://localhost:3306/jianyuga?useUnicode=true&characterEncoding=UTF-8";
		String user = "root";
		String pwd = "qipayhs";
		Connection conn = null;
		try{
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			conn = DriverManager.getConnection(url, user, pwd);
		}catch (Exception e){
			e.getMessage();
		}
		return conn;
	}
}